package com.xinzhilibrary.util;

import io.jsonwebtoken.Jwts;

public class CheckJWT {
    public boolean checkJwt(String token) {
        try {
            Jwts.parser().setSigningKey("XinZhiLib").parseClaimsJws(token);
            return true;
        } catch (Exception e) {
            e.printStackTrace();
            return false;
        }
    }
}
